export interface OptionType {
  id: number
  name: string
}
export interface UserInfoRes {
  id: number
  name: string
  username: string
  email: string
  avatar: string
  sign: string
  sex: number
  roles: OptionType[]
  roleIds: number[]
  status: number
  deleted: number
  createTime: string
  updateTime: string
}

export interface UserInfoPageParams {
  pageNum: number
  pageSize: number
  keywords?: string
  status?: number
  delete?: number
}

export interface AddUserParams {
  id?: number
  /*用户名（身份ID) */
  username: string

  /*密码 */
  password: string

  /*姓名 */
  name: string

  avatar: string

  email: string

  sign: string

  /*性别 */
  sex: number
}

export interface UpdateUserInfoParams {
  /*用户id */
  id: number

  /*姓名 */
  name: string

  /*邮箱 */
  email: string

  /*签名 */
  sign: string

  /*性别 */
  sex: number

  /*用户头像 */
  avatar: string
}

export interface UserPageRes {
  list: UserInfoRes[]
  total: number
}

export interface UserRolesParams {
  /* */
  roleIds: number[]

  /* */
  userId: number
}

export interface UserAvatarOrSignParams {
  content?: string
}
